#ifndef __QCWIDGET_H__
#define __QCWIDGET_H__

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QDialog>
#include <QString>
#include <QIcon>
#include <QMouseEvent>

class QCWidget : public QWidget
{
	Q_OBJECT
public:
	explicit QCWidget(QWidget *parent = 0);
	~QCWidget();

public:
	void setSize(int w, int h);
	virtual void setQCGeometry(int x, int y, int w, int h);
	virtual void setMainWnd(QWidget* pWidget);
	void moveCenter(int screenWidth, int screenHeight);

protected:
	void paintEvent(QPaintEvent *);
	void mouseMoveEvent(QMouseEvent *event);
	void mousePressEvent(QMouseEvent * event);
	void mouseReleaseEvent(QMouseEvent *event);
	
	int m_nWidth;
	int m_nHeight;

protected:
	QWidget* mainWnd;
};

#endif // __QCWIDGET_H__
